package com.xm.po;
/**
* @Description: 商品类型实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
public class GoodsType {
    //属性
    private Integer typeId;
    //类型名称
    private String typeName;
    //父编号
    private Integer parentId;

    //构造器
    public GoodsType() {
    }

    public GoodsType(Integer parentId) {
        this.parentId = parentId;
    }

    public GoodsType(Integer typeId, String typeName, Integer parentId) {
        this.typeId = typeId;
        this.typeName = typeName;
        this.parentId = parentId;
    }

    //getter setter方法
    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public String toString() {
        return "Goodstype [typeId=" + typeId + ", typeName=" + typeName + ", parentId=" + parentId + "]";
    }
}

